package view;

import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.WindowConstants;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class JInternalFrameAltaItemRodamiento extends javax.swing.JInternalFrame {
	private JButton btnCancelar;
	private JTextField jTextField1;
	private JLabel lblCaracteristica;
	private JTextField txtCantidad;
	private JTextField txtOrigen;
	private JTextField txtMarca;
	private JTextField txtCodigo;
	private JLabel lblCantidad;
	private JLabel lblOrigen;
	private JLabel lblMarca;
	private JLabel lblCodigo;
	private JButton btnAceptar;

	/**
	* Auto-generated main method to display this 
	* JInternalFrame inside a new JFrame.
	*/
		
	public JInternalFrameAltaItemRodamiento() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setPreferredSize(new Dimension(400, 300));
			this.setBounds(0, 0, 400, 300);
			setVisible(true);
			this.setTitle("Alta de Items Rodamiento");
			getContentPane().setLayout(null);
			{
				btnCancelar = new JButton();
				getContentPane().add(btnCancelar);
				btnCancelar.setText("Cancelar");
				btnCancelar.setBounds(204, 223, 111, 26);
				btnCancelar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						dispose();
					}
				});
			}
			{
				btnAceptar = new JButton();
				getContentPane().add(btnAceptar, "Center");
				btnAceptar.setText("Aceptar");
				btnAceptar.setBounds(68, 223, 111, 26);
				btnAceptar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						//	Sistema.getInstancia().altaCliente(txtCodigo.getText(), txtCondVta.getText(), txtCUIT.getText(), txtDescuentos.getText(), txtDomicilio.getText(), txtRazonSocial.getText(), txtTelefono.getText());
					}
				});
			}
			{
				lblCodigo = new JLabel();
				getContentPane().add(lblCodigo);
				lblCodigo.setText("Codigo: ");
				lblCodigo.setBounds(45, 38, 110, 14);
			}
			{
				lblMarca = new JLabel();
				getContentPane().add(lblMarca);
				lblMarca.setText("Marca: ");
				lblMarca.setBounds(45, 104, 110, 14);
			}
			{
				lblOrigen = new JLabel();
				getContentPane().add(lblOrigen);
				lblOrigen.setText("Origen: ");
				lblOrigen.setBounds(45, 141, 110, 14);
			}
			{
				lblCantidad = new JLabel();
				getContentPane().add(lblCantidad);
				lblCantidad.setText("Cantidad: ");
				lblCantidad.setBounds(45, 183, 110, 14);
			}
			{
				txtCodigo = new JTextField();
				getContentPane().add(txtCodigo);
				txtCodigo.setBounds(173, 34, 176, 21);
			}
			{
				txtMarca = new JTextField();
				getContentPane().add(txtMarca);
				txtMarca.setBounds(173, 100, 176, 21);
			}
			{
				txtOrigen = new JTextField();
				getContentPane().add(txtOrigen);
				txtOrigen.setBounds(173, 137, 176, 21);
			}
			{
				txtCantidad = new JTextField();
				getContentPane().add(txtCantidad);
				txtCantidad.setBounds(173, 179, 176, 21);
			}
			{
				lblCaracteristica = new JLabel();
				getContentPane().add(lblCaracteristica);
				lblCaracteristica.setText("Caracteristica: ");
				lblCaracteristica.setBounds(45, 71, 110, 14);
			}
			{
				jTextField1 = new JTextField();
				getContentPane().add(jTextField1);
				jTextField1.setBounds(173, 67, 176, 21);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
